package myJs.myPkg.bootstrap.jquery

import scala.scalajs.js
import myJs.myPkg.jquery._
import slinky.readwrite.ObjectOrWritten

/**
 * Created by Administrator on 2019/12/31
 */


case class ScrollspyOptions(target: String,offset:Int)

case class Offset(top:Int)

case class AffixOptions(offset: Offset)

@scalajs.js.native
trait BootstrapJQuery extends scalajs.js.Object {
  def tab(options: scalajs.js.Any): JQuery = scalajs.js.native

  def carousel(options: scalajs.js.Any = ???): JQuery = scalajs.js.native

  def modal(options: scalajs.js.Any = ???): JQuery = scalajs.js.native

  def tooltip(options: scalajs.js.Any = ???): JQuery = scalajs.js.native

  def popover(options: scalajs.js.Any = ???): JQuery = js.native

  def scrollspy(options: ObjectOrWritten[ScrollspyOptions]): JQuery = js.native

  def affix(options: ObjectOrWritten[AffixOptions]): JQuery = js.native


}
